package com.bitcoin.scheduler.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 实时价格表 每个币种的最新价格信息
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "bcc_price_info")
@DynamicInsert
@DynamicUpdate
public class BccPriceInfo extends Identity {

    @JsonIgnore
    private String bccId;
    private Date priceTimestamp;
    @JsonIgnore
    private String nameEn;
    @JsonIgnore
    private String nameCn;
    @JsonIgnore
    private String volumeUsd;
    @JsonIgnore
    private String volumeCny;
    @JsonIgnore
    private String volumeBtc;
    private String priceUsd;
    private String priceCny;
    private String priceBtc;
    private String change7d;
    private String change1d;
    private String change1h;
    @JsonIgnore
    private String availableSupply;
    private String high1dUsd;
    private String high1dCny;
    private String high1dBtc;
    private String low1dUsd;
    private String low1dBtc;
    private String low1dCny;
    private String marketCap;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;
}
